<template>
	<view class="Layout">
		<custom-nav-bar title="分类"></custom-nav-bar>
		
		<view class="classify">
			<theme-title v-for="item in classifyList" :key="item._id"
			 :item="item"></theme-title>
			
		</view>
		
	</view>
</template>


<script setup>


import { ref } from 'vue';
import { apiGetClassify} from '../../api/apis';
const classifyList=ref([])
async function getClassify(){
	let res =await apiGetClassify({
		
		pageSize:15
	});//返回的是一个promise对象
	classifyList.value= res.data
	console.log(classifyList)
	

}
getClassify()
</script>

<style lang="scss" scoped>
	.classify{
			
			padding:  30rpx;
			display: grid;
			gap: 15rpx;
			grid-template-columns: repeat(3,1fr);
		}
</style>
